/**
 * Copyright (C) 2006-2014 版权所有者为北京捷越联合信息咨询有限公司。本系统是商用软件,未经授权擅自复制或传播本程序的部分或全部将是非法的。 
 * @title: BaseHeaderResponseDTO.java
 * @package com.jy.modules.loan.pojo
 * @author chenzun
 * @date 2014-12-11 下午3:33:42
 * @version v1.00
 * @description: TODO(用一句话描述该文件做什么)
 */
package com.jy.modules.cims.data.interact.core;

import java.util.Date;

import com.jy.modules.cims.common.sysUtils.DateTimeUtils;

/**
 * @classname: BaseHeaderResponseDTO
 * @description: TODO(这里用一句话描述这个类的作用)
 */
public class BaseHeaderResponseDTO {

	/** 信贷交易流水号 */
	private String frontTransNo;

	/** 核心返回时间 */
	private String retTime;

	/** 接口编码 */
	private String interfaceNo;

	/** 业务编码 */
	private String busiCode;

	/** 核心返回码 */
	private String retCode;

	/** 核心返回信息 */
	private String retMsg;

	/** 核心交易流水号 */
	private String coreTransNo;

	public String getFrontTransNo() {
		return frontTransNo;
	}

	public void setFrontTransNo(String frontTransNo) {
		this.frontTransNo = frontTransNo;
	}

	public String getRetTime() {
		return retTime;
	}

	public void setRetTime(String retTime) {
		this.retTime = retTime;
	}

	public String getInterfaceNo() {
		return interfaceNo;
	}

	public void setInterfaceNo(String interfaceNo) {
		this.interfaceNo = interfaceNo;
	}

	public String getRetCode() {
		return retCode;
	}

	public void setRetCode(String retCode) {
		this.retCode = retCode;
	}

	public String getRetMsg() {
		return retMsg;
	}

	public void setRetMsg(String retMsg) {
		this.retMsg = retMsg;
	}

	public String getCoreTransNo() {
		return coreTransNo;
	}

	public void setCoreTransNo(String coreTransNo) {
		this.coreTransNo = coreTransNo;
	}

	public String getBusiCode() {
		return busiCode;
	}

	public void setBusiCode(String busiCode) {
		this.busiCode = busiCode;
	}

	public BaseHeaderResponseDTO() {
		// 默认构造方法
		retTime = DateTimeUtils.formatDate(new Date(),
				DateTimeUtils.DEFAULT_DATE_TIME_FORMAT);
	}

	public BaseHeaderResponseDTO(BaseHeaderRequestDTO req) {
		// 带参数构造方法
		this.retTime = DateTimeUtils.formatDate(new Date(),
				DateTimeUtils.DEFAULT_DATE_TIME_FORMAT);
		this.interfaceNo = req.getInterfaceNo();
		this.busiCode = req.getBusiCode();
		this.frontTransNo = req.getFrontTransNo();
		this.coreTransNo = SerialNoGenUtil.getSerialNo(req.getInterfaceNo());
	}
}
